/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.shop;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 店铺商标信息Entity
 * @author 李欣荣
 * @version 2018-10-09
 */
public class HkShopTrademark extends DataEntity<HkShopTrademark> {
	
	private static final long serialVersionUID = 1L;
	private HkUserShop shop;		// 店铺
	private String trademarkType;		// 商标类型
	private String trademarkNumber;		// 商标注册号
	private String trademarkSrc;		// 商标注册执照
	private String brandSrc;		// 品牌授权证明
	private Date brandEndDate;		// 品牌授权截止日期
	private Date updateTime;		// 更新时间
	private String state;		// 状态
	
	public HkShopTrademark() {
		super();
	}

	public HkShopTrademark(String id){
		super(id);
	}

	public HkUserShop getShop() {
		return shop;
	}

	public void setShop(HkUserShop shop) {
		this.shop = shop;
	}
	
	@Length(min=0, max=1, message="商标类型长度必须介于 0 和 1 之间")
	public String getTrademarkType() {
		return trademarkType;
	}

	public void setTrademarkType(String trademarkType) {
		this.trademarkType = trademarkType;
	}
	
	@Length(min=0, max=32, message="商标注册号长度必须介于 0 和 32 之间")
	public String getTrademarkNumber() {
		return trademarkNumber;
	}

	public void setTrademarkNumber(String trademarkNumber) {
		this.trademarkNumber = trademarkNumber;
	}
	
	@Length(min=0, max=200, message="商标注册执照长度必须介于 0 和 200 之间")
	public String getTrademarkSrc() {
		return trademarkSrc;
	}

	public void setTrademarkSrc(String trademarkSrc) {
		this.trademarkSrc = trademarkSrc;
	}
	
	@Length(min=0, max=200, message="品牌授权证明长度必须介于 0 和 200 之间")
	public String getBrandSrc() {
		return brandSrc;
	}

	public void setBrandSrc(String brandSrc) {
		this.brandSrc = brandSrc;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBrandEndDate() {
		return brandEndDate;
	}

	public void setBrandEndDate(Date brandEndDate) {
		this.brandEndDate = brandEndDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
}